# Turn on URL rewriting
RewriteEngine On

# Installation directory
 RewriteBase /


#RewriteRule ^index\.html$ index.php
RewriteRule   ^(.*).html$  $1.html [QSA,PT,L]



RewriteRule ^([^/]+)/([^/]+)/?$ index.php?mod=$1&act=$2 [QSA,PT,L]
RewriteRule ^([^/]+)/?([^/]*)$ index.php?mod=$1&act=index [QSA,PT,L]


RewriteRule   ^$  index.php?mod=default&act=index [PT,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
